﻿<!DOCTYPE html>
<html>
<head>
    <title>@View.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.4.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

</head>

<body>
  @Html.WriteFlash()
  @RenderBody()    

  <script type="text/javascript">
    $(".deleteLink").live("click", function (e) {
      e.preventDefault();
      var url = $(this).attr("href");
      $.ajax({
        url: url,
        type: "DELETE",
        success: function () { window.location.reload(); }
      });
    });  
  </script>

</body>
</html>
